package com.huike.springboot1.demos.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CheckController {
    @RequestMapping("/check")
    public String Check(Model model) {
        model.addAttribute("msg", "Spring 安全管理");
        return "check";
    }
    @GetMapping("/403")
    public String toDenied(Model model) {
        return "error";//返回到的页面
    }
}
